/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.bgIntlgn.client.entity.privilege;

import yuhuibear.poat.annotations.action.AutoGenerateValue;
import yuhuibear.poat.annotations.relation.Field;
import yuhuibear.poat.annotations.relation.Table;
import yuhuibear.poat.object.bean.Bean;

/**
 * Account.
 * @author yuhuibear
 */
@Table(name = "skill_beans", constrain = "")
public class SkillBean implements Bean {

    @AutoGenerateValue(skipOnNull = true, sqlToGet = "select currval('skill_beans_id_seq')")
    @Field(name = "skill_name", type = "char(40)", constrain = "not null references skills(name) on update cascade on delete cascade ")
    private String skillName;
    @Field(name = "bean", type = "varchar(255)", constrain = "")
    private String bean;

    public String getBean() {
        return bean;
    }

    public void setBean(String bean) {
        this.bean = bean;
    }

    public String getSkillName() {
        return skillName;
    }

    public void setSkillName(String skillName) {
        this.skillName = skillName.trim();
    }

    
}
